package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.common.Result;
import com.example.demo.entity.EO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface EoService extends IService<EO> {
    Result<?> add(EO eo, HttpServletRequest request);

    Result<?> update(EO eo, HttpServletRequest request);

    Result<?> delete(Long id);

    Result<?> list(Integer pageNum, Integer pageSize, String search,
                   String month, String departmentId, Integer peopleId, String status, String origin, String type);

    Result<?> synchronise(HttpServletRequest request) throws Exception;

    Map<String, Object> getMap(Long id);

}
